package work.mediway.mdm.biz.vo.dict;

import java.util.Map;

import cn.hutool.json.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 字典通用消息格式模板
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2022/7/8
 */
@Data
@ApiModel("字典通用消息格式模板")
public class DictFormatTemplateVO {

    @ApiModelProperty(value = "接入数据")
    private Format input = new Format();

    @ApiModelProperty(value = "接出数据")
    private Format output = new Format();

    @Data
    @ApiModel("字典格式")
    public static class Format {

        @ApiModelProperty(value = "请求类型")
        private Object type;

        @ApiModelProperty(value = "数据格式")
        private Object dataFormat;

        @ApiModelProperty(value = "请求头")
        private String header;

        @ApiModelProperty(value = "请求方式")
        private String method;

        @ApiModelProperty(value = "请求地址")
        private String url;

        @ApiModelProperty(value = "参数传输类型")
        private String paramType;

        @ApiModelProperty(value = "参数传输类型")
        private Map<String,Object> param;

        @ApiModelProperty(value = "参数传输类型")
        private JSON success;
    }
}
